<!-- 对 漂浮 组件的编辑 -->
<template>
  <div class="style-edit">
    <Color :defValue="configData.backgroundColor" :chgValue="(d)=>{configData.backgroundColor = d}" :title="'背景颜色'" :formLabelWidth="formLabelWidth"/>
    <el-form @submit.native.prevent :label-width="formLabelWidth">
      <el-form-item label="透明度" style="margin-bottom: 0px;">
        <el-input size="mini" style="width:60px;"
          v-model="configData.opacity" maxlength="12" placeholder="1"></el-input>
        <span class="tip-color1">例如：0.88 </span>
      </el-form-item>
    </el-form>
    <Color :defValue="configData.color" :chgValue="(d)=>{configData.color = d}" :title="'字体颜色'" :formLabelWidth="formLabelWidth"/>
    <el-divider content-position="left">文本设置</el-divider>
    <el-form :label-width="formLabelWidth" @submit.native.prevent>
      <el-form-item label="复制成功" style="margin-bottom:0px;" >
        <el-input size="mini" v-model="configData.copySucessText" maxlength="200" placeholder="复制成功" style="width:300px;"></el-input>
      </el-form-item>
      <el-form-item label="微信号" style="margin-bottom:0px;">
        <el-input size="mini" v-model="configData.wechatNumText" maxlength="200" placeholder="微信号" style="width:300px;"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import Color from '@/components/common/design/dialog/component/formitem/Color.vue'
export default {
  props: {
    configDataP: {
      type: Object
    }
  },
  computed: {
  },
  created () {
  },
  mounted () {
  },
  data () {
    return {
      formLabelWidth: '80px',
      configData: JSON.parse(JSON.stringify(this.configDataP))
    }
  },
  watch: {
  },
  methods: {
    getConfigData () {
      return this.configData
    }
  },
  components: {
    Color
  }
}
</script>

<style scoped>
</style>
